package com.taiji.redistemplate.controller;

import com.taiji.redistemplate.cache.RedisOperate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Objects;

@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private RedisOperate redisOperate;
    @GetMapping("")
    public boolean test() {
        System.out.println(redisOperate.get("lulu"));
        return true;

    }
}
